package com.glory.dmegcpda.view

import android.os.Bundle
import android.view.View
import androidx.databinding.DataBindingUtil
import com.glory.dmegcpda.R
import com.glory.dmegcpda.databinding.ActivityEqpRepairBinding
import com.glory.dmegcpda.viewmodel.EqpRepairViewModel
import com.glory.mvvmnet.base.BaseActivity
import kotlinx.android.synthetic.main.activity_eqp_repair.*

/**
 * FileName: EqpRepairActivity
 * Author: XJH
 * Date: 2021/10/18 17:56
 * Description:
 * History:
 */
class EqpRepairActivity : BaseActivity<EqpRepairViewModel>(), View.OnClickListener {
    var mBinding : ActivityEqpRepairBinding? = null
    override fun initData() {

    }

    override fun initView(savedInstanceState: Bundle?) {
        mBinding = DataBindingUtil.setContentView(this,R.layout.activity_eqp_repair)
        mBinding!!.eqpRepairViewModel = viewModel
        btnConfirm.setOnClickListener(this)
        ivBack.setOnClickListener(this)
        flRepairTime.setOnClickListener(this)
    }

    override fun layoutId(): Int {
        return R.layout.activity_eqp_repair
    }

    override fun onClick(p: View?) {
        when(p?.id){
            R.id.ivBack -> finish()
            R.id.btnConfirm ->{

            }
            R.id.flRepairTime ->{

            }
        }
    }
}